cmake_minimum_required(VERSION 3.0.4)
project(DTW)

add_compile_options(-std=c++11)

find_package(pybind11 REQUIRED)
message(STATUS "pybind11 version: ${pybind11_VERSION}")

find_package (Python COMPONENTS Interpreter Development)
message(STATUS "Python_VERSION: ${Python_VERSION}")

include_directories(
  include
  ${pybind11_INCLUDE_DIRS}
)

add_executable(dtw_test src/dtw_test.cpp src/dtw.cpp)
target_link_libraries(dtw_test ${pybind11_LIBRARIES} ${Python_LIBRARIES})

# add_library(DTW SHARED src/dtw.cpp  ${pybind11_LIBRARIES} ${Python_LIBRARIES})

pybind11_add_module(mydtw src/dtw.cpp)